﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AccompanyCabinet.Admin
{
    public partial class Index : Form
    {
        private Login login;
        public Index()
        {
            InitializeComponent();
        }

        private void Index_Load(object sender, EventArgs e)
        {

        }

        private void btn_return_Click(object sender, EventArgs e)
        {
            login = new Login();
            this.Hide();
            login.Show();
        }

        private void btn_storage_Click(object sender, EventArgs e)
        {
            Admin.TerminalDetail terminal = new TerminalDetail();
            this.Hide();
            terminal.Show();
        }

        private void btn_devicedetail_Click(object sender, EventArgs e)
        {
            Admin.DeviceBoxList deviceBox = new DeviceBoxList();
            this.Hide();
            deviceBox.Show();
        }

        private void btn_setcost_Click(object sender, EventArgs e)
        {
            this.Hide();
            new SetCost().Show();
        }

        private void btn_incomedetail_Click(object sender, EventArgs e)
        {
            this.Hide();
            new InComeDetail().Show();
        }

        private void btn_storagedetail_Click(object sender, EventArgs e)
        {
            this.Hide();
            new StorageDetail().Show();
        }

        private void btn_clearbox_Click(object sender, EventArgs e)
        {
            this.Hide();
            new ClearBox().Show();
        }

        private void btn_binding_Click(object sender, EventArgs e)
        {
            this.Hide();
            new SearchOrder().Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.Environment.Exit(0);
        }
    }
}
